<div class="admin_right_top"><{$lang.advs_buy}></div>
<script type="text/javascript">
function isNumber(str)
{ 
	var reg = /\D/; 
	if(""==str||str.match(reg)!=null)
	{ 
		alert('<{$lang.enternum}>');
		return false; 
	} 
}
</script>
<form name="adv" action="" method="POST" style="margin-top:0px;" onsubmit="return isNumber($('show_time').value);">
	<table width='100%' border="0" cellpadding="7" cellspacing="1" bgcolor="#DDDDDD" class="admin_table">
  <tr> 
	<td width='22%' height="24" align="left" bgcolor="#EAEFF3"><{$lang.avidcash}></td>
	<td width='77%' bgcolor="#FFFFFF"><{$config.money}><{$re.cash|number_format:2}>  [<a href="main.php?menu=trade&action=admin_accounts_pay"><{$lang.addcash}></a>]</td>
  </tr>
  	  <tr>
  	    <td height="20" align="left" bgcolor="#EAEFF3"><{$lang.adv_name}></td>
  	    <td height="20" bgcolor="#FFFFFF"><{$ad.name}></td>
      </tr>
  	  <tr>
  	    <td height="20" align="left" bgcolor="#EAEFF3"><{$lang.adv_price}></td>
  	    <td height="20" bgcolor="#FFFFFF">
  	      <{$config.money}><{$ad.price}>/<{$lang[$ad.unit]}></td>
      </tr>
       <tr>
  	    <td height="20" align="left" bgcolor="#EAEFF3"><{$lang.adv_buy_unit}></td>
  	    <td height="20" bgcolor="#FFFFFF"><input type="text" name="show_time" id="show_time" size="5" maxlength="4" value="1">
  	      <{$lang[$ad.unit]}></td>
      </tr>
  <tr> 
	<td width='17%' height="24" align="right" bgcolor="#EAEFF3"> </td>
	<td width='83%' bgcolor="#FFFFFF">
	<{if $re.cash>0}>
	<input  type='submit' id="Submit" name='Submit' value='<{$lang.submit}>' onclick="return calc();" style="width:100px;" >
	<{else}>
	账户资金不足，无法购买 ,<a href="main.php?menu=trade&action=admin_accounts_pay"><{$lang.addcash}></a>
	<{/if}>
	</td>
  </tr>
</table>
</form>